<?php

namespace app\lib\exception;
use think\Exception;

class BaseException extends Exception
{
    public function __construct($params=[])
    {
       if(!is_array($params))
       {
           return;
       }
       if(array_key_exists('msg',$params))
       {
           $this->msg=$params['msg'];
       }
       if(array_key_exists('errorCode',$params))
       {
           $this->msg=$params['errorCode'];
       }
       if(array_key_exists('httpStatus',$params))
       {
           $this->msg=$params['httpStatus'];
       }

    }


}
